//
//  NSString+Cool.h
//  HX2Car
//
//  Created by Mudmen on 16/7/20.
//  Copyright © 2016年 Hx2car_mac. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Cool)

+ (NSString*)weekDayStr:(NSString *)format;
+(NSString *)getNowTimeTimestamp;

- (NSDictionary *)jsonToDictionary;

- (NSArray *)jsonToArray;

// 时间戳转换时间
+ (NSString *)timeSwitchStr:(NSString *)timeChuo;
//格式化x-x-x x:x:x
+ (NSString *)stringFromDate:(NSDate *)date;
+ (NSString *)timeyymddStr:(NSString *)timeChuo;
+ (NSString *)timeMMDDStr:(NSString *)timeChuo;


- (NSString*)UFT8Nst;

+ (NSString *)formatString:(NSString *)formatString WithString:(NSString *)string;
+ (NSString *)firstPicFormatString:(NSString *)formatString WithString:(NSString *)string;

- (CGSize)sizeWithString:(NSString *)string font:(UIFont *)font constraintSize:(CGSize)constraintSize;

+ (NSString *)reviseString:(NSString *)string;
//生成二维码
- (UIImage*)creatErWeiMaImageWithPicWidth:(CGFloat)width;
- (NSAttributedString *)addPicToNum:(NSInteger)num pic:(NSString*)pic picFrame:(CGRect)frame;
@end
